package com.zlp.entity;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
@Component
public class SysResource implements Serializable {
    private Integer id;

    /**
     * 父菜单ID，一级菜单为0
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "父菜单ID，一级菜单为0")
    private Long parentId;

    /**
     * 菜单名称
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "菜单名称")
    private String resourceName;

    /**
     * 菜单URL
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "菜单URL")
    private String url;

    /**
     * 按钮授权
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "按钮授权")
    private String buttonPermission;

    /**
     * 类型   0：目录   1：菜单   2：按钮
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "类型   0：目录   1：菜单   2：按钮")
    private Integer resourceType;

    /**
     * 菜单图标
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "菜单图标")
    private String icon;

    /**
     * 排序
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    /**
     * 1-已删除；0-未删除
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "1-已删除；0-未删除")
    private String isDelete;

    /**
     * 状态 1-固定角色 0-正常 1-停用
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "状态 1-固定角色 0-正常 1-停用")
    private Integer status;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getButtonPermission() {
        return buttonPermission;
    }

    public void setButtonPermission(String buttonPermission) {
        this.buttonPermission = buttonPermission;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", resourceName=").append(resourceName);
        sb.append(", url=").append(url);
        sb.append(", buttonPermission=").append(buttonPermission);
        sb.append(", resourceType=").append(resourceType);
        sb.append(", icon=").append(icon);
        sb.append(", orderNum=").append(orderNum);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", status=").append(status);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}